package com.novax.ex.activity.open.api;

import com.novax.ex.activity.open.model.response.RankConfigOuterResponse;
import com.novax.ex.activity.open.model.response.RankSubConfigResponse;
import com.novax.ex.common.results.ReturnResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * summary: 前台-排名赛展示
 *
 * @author shaw
 * @date 11/30/22 11:14
 */
@Tag(name = "前台-排名赛", description = "前台-排名赛")
@FeignClient(url = "${remote.activity-service.endpoint}", name = "RankConfigApi", contextId = "RankConfigApi")
public interface RankConfigApi {

    @Operation(summary = "排名赛上架活动query")
    @GetMapping("/v3/public/rank-page")
    ReturnResult<RankConfigOuterResponse> query();

    @Operation(summary = "排名赛子活动配置分页查询")
    @GetMapping("/v3/public/rank-sub/{rankId}")
    ReturnResult<List<RankSubConfigResponse>> subListQuery(@PathVariable("rankId") Long rankId);



}